package project.background.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import fld.background.system.dto.annotation.Des;
import fld.background.system.entity.AUTOIDModel;
import lombok.Getter;
import lombok.Setter;

/**
 **企业产品分类
 * @author yc
 * 2019年1月4日
 */
@Des("企业产品分类")
@Setter
@Getter
@Entity
@Table(name = "t_company_product_type")
public class ProductType extends AUTOIDModel {
	private static final long serialVersionUID = 1L;

	@Des("所属企业ID")
	@Column(name = "companyId",nullable=false)
	private Long companyId;
	
	@Des("分类名称")
	@Column(name = "name",length = 100,nullable=false)
	private String name;
	
	@Des("分类编码")
	@Column(name = "code",length = 100,nullable=false)
	private String code;

	@Des("排序号")
	@Column(name = "zindex", nullable = false)
	private Integer zindex;
	
}